<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{mmItemBean.id}"/>
		<f:event type="preRenderView" listener="#{mmItemBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Mm Item"/>

	<ui:define name="header">
		Mm Item
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty mmItemBean.id}">
				Edit existing Mm Item
			</c:when>
			<c:otherwise>
				Create a new Mm Item
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="mmItemBeanMmItemItemNo" value="Item No:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemNo" required="true" value="#{mmItemBean.mmItem.itemNo}"/>
					<h:message for="mmItemBeanMmItemItemNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="mmItemBeanMmItemMmItemGroup" value="Mm Item Group:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmItemGroupBean.converter}" id="mmItemBeanMmItemMmItemGroup" value="#{mmItemBean.mmItem.mmItemGroup}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemGroupBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmItemBeanMmItemMmItemGroup" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemMmItemType" value="Mm Item Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmItemTypeBean.converter}" id="mmItemBeanMmItemMmItemType" value="#{mmItemBean.mmItem.mmItemType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmItemBeanMmItemMmItemType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemMmItemColor" value="Mm Item Color:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmItemColorBean.converter}" id="mmItemBeanMmItemMmItemColor" value="#{mmItemBean.mmItem.mmItemColor}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemColorBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="mmItemBeanMmItemMmItemColor" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemItemCode" value="Item Code:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemCode" maxLength="50" value="#{mmItemBean.mmItem.itemCode}"/>
					<h:message for="mmItemBeanMmItemItemCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemItemModelCode" value="Item Model Code:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemModelCode" maxLength="50" value="#{mmItemBean.mmItem.itemModelCode}"/>
					<h:message for="mmItemBeanMmItemItemModelCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemItemDescr" value="Item Descr:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemDescr" maxLength="200" value="#{mmItemBean.mmItem.itemDescr}"/>
					<h:message for="mmItemBeanMmItemItemDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemItemStatusIsActive" value="Item Status Is Active:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemStatusIsActive" value="#{mmItemBean.mmItem.itemStatusIsActive}"/>
					<h:message for="mmItemBeanMmItemItemStatusIsActive" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemItemEffectiveDate" value="Item Effective Date:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemEffectiveDate" maxLength="10" value="#{mmItemBean.mmItem.itemEffectiveDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="mmItemBeanMmItemItemEffectiveDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemItemExpireDate" value="Item Expire Date:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemExpireDate" maxLength="10" value="#{mmItemBean.mmItem.itemExpireDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="mmItemBeanMmItemItemExpireDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemItemBalQty" value="Item Bal Qty:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemBalQty" required="true" value="#{mmItemBean.mmItem.itemBalQty}"/>
					<h:message for="mmItemBeanMmItemItemBalQty" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="mmItemBeanMmItemItemPrice" value="Item Price:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemPrice" required="true" value="#{mmItemBean.mmItem.itemPrice}"/>
					<h:message for="mmItemBeanMmItemItemPrice" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="mmItemBeanMmItemItemStatusIsPromotion" value="Item Status Is Promotion:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemStatusIsPromotion" value="#{mmItemBean.mmItem.itemStatusIsPromotion}"/>
					<h:message for="mmItemBeanMmItemItemStatusIsPromotion" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemItemCreatedDtm" value="Item Created Dtm:"/>
				<h:panelGroup>
					<h:inputText id="mmItemBeanMmItemItemCreatedDtm" maxLength="19" value="#{mmItemBean.mmItem.itemCreatedDtm}">
						<f:convertDateTime pattern="MMM d, yyyy hh:mm:ss a" type="both"/>
					</h:inputText>
					<h:message for="mmItemBeanMmItemItemCreatedDtm" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemPcPurchaseReceiptItems" value="Pc Purchase Receipt Items:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmItemBean.mmItem.pcPurchaseReceiptItems}"/>
					<h:dataTable id="mmItemBeanMmItemPcPurchaseReceiptItems" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rcpt Qty"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReceiptItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemRcptQty" value="#{_item.rcptQty}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReceiptItemBeanAddRcptQty" value="#{pcPurchaseReceiptItemBean.add.rcptQty}"/>
								<h:message for="pcPurchaseReceiptItemBeanAddRcptQty" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rcpt Ppu"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReceiptItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemRcptPpu" value="#{_item.rcptPpu}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReceiptItemBeanAddRcptPpu" value="#{pcPurchaseReceiptItemBean.add.rcptPpu}"/>
								<h:message for="pcPurchaseReceiptItemBeanAddRcptPpu" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rcpt Vat Perc Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReceiptItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemRcptVatPercVal" value="#{_item.rcptVatPercVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReceiptItemBeanAddRcptVatPercVal" value="#{pcPurchaseReceiptItemBean.add.rcptVatPercVal}"/>
								<h:message for="pcPurchaseReceiptItemBeanAddRcptVatPercVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rcpt Vat Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReceiptItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemRcptVatVal" value="#{_item.rcptVatVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReceiptItemBeanAddRcptVatVal" value="#{pcPurchaseReceiptItemBean.add.rcptVatVal}"/>
								<h:message for="pcPurchaseReceiptItemBeanAddRcptVatVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Rcpt Total Price Exc Vat"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReceiptItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemRcptTotalPriceExcVat" value="#{_item.rcptTotalPriceExcVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReceiptItemBeanAddRcptTotalPriceExcVat" value="#{pcPurchaseReceiptItemBean.add.rcptTotalPriceExcVat}"/>
								<h:message for="pcPurchaseReceiptItemBeanAddRcptTotalPriceExcVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseReceiptItemBean.added)}" id="mmItemBeanMmItemPcPurchaseReceiptItemsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseReceiptItemBean.add.mmItem}" value="#{mmItemBean.mmItem}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemMmItemImages" value="Mm Item Images:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmItemBean.mmItem.mmItemImages}"/>
					<h:dataTable id="mmItemBeanMmItemMmItemImages" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Item Image Name"/>
							</f:facet>
							<h:link outcome="/mmItemImage/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemItemImageName" value="#{_item.itemImageName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmItemImageBeanAddItemImageName" maxLength="300" value="#{mmItemImageBean.add.itemImageName}"/>
								<h:message for="mmItemImageBeanAddItemImageName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Item Image Descr"/>
							</f:facet>
							<h:link outcome="/mmItemImage/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemItemImageDescr" value="#{_item.itemImageDescr}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmItemImageBeanAddItemImageDescr" maxLength="500" value="#{mmItemImageBean.add.itemImageDescr}"/>
								<h:message for="mmItemImageBeanAddItemImageDescr" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Item Image File Name"/>
							</f:facet>
							<h:link outcome="/mmItemImage/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemItemImageFileName" value="#{_item.itemImageFileName}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmItemImageBeanAddItemImageFileName" maxLength="300" value="#{mmItemImageBean.add.itemImageFileName}"/>
								<h:message for="mmItemImageBeanAddItemImageFileName" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(mmItemImageBean.added)}" id="mmItemBeanMmItemMmItemImagesAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{mmItemImageBean.add.mmItem}" value="#{mmItemBean.mmItem}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemPcPurchaseOrderItems" value="Pc Purchase Order Items:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmItemBean.mmItem.pcPurchaseOrderItems}"/>
					<h:dataTable id="mmItemBeanMmItemPcPurchaseOrderItems" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Qty"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoQty" value="#{_item.poQty}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderItemBeanAddPoQty" value="#{pcPurchaseOrderItemBean.add.poQty}"/>
								<h:message for="pcPurchaseOrderItemBeanAddPoQty" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Ppu"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoPpu" value="#{_item.poPpu}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderItemBeanAddPoPpu" value="#{pcPurchaseOrderItemBean.add.poPpu}"/>
								<h:message for="pcPurchaseOrderItemBeanAddPoPpu" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Status Inc Vat"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoStatusIncVat" value="#{_item.poStatusIncVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderItemBeanAddPoStatusIncVat" value="#{pcPurchaseOrderItemBean.add.poStatusIncVat}"/>
								<h:message for="pcPurchaseOrderItemBeanAddPoStatusIncVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Vat Perc Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoVatPercVal" value="#{_item.poVatPercVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderItemBeanAddPoVatPercVal" value="#{pcPurchaseOrderItemBean.add.poVatPercVal}"/>
								<h:message for="pcPurchaseOrderItemBeanAddPoVatPercVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Po Vat Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPoVatVal" value="#{_item.poVatVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseOrderItemBeanAddPoVatVal" value="#{pcPurchaseOrderItemBean.add.poVatVal}"/>
								<h:message for="pcPurchaseOrderItemBeanAddPoVatVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseOrderItemBean.added)}" id="mmItemBeanMmItemPcPurchaseOrderItemsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseOrderItemBean.add.mmItem}" value="#{mmItemBean.mmItem}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemPcPurchaseReqItems" value="Pc Purchase Req Items:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmItemBean.mmItem.pcPurchaseReqItems}"/>
					<h:dataTable id="mmItemBeanMmItemPcPurchaseReqItems" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Qty"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReqItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPrQty" value="#{_item.prQty}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqItemBeanAddPrQty" value="#{pcPurchaseReqItemBean.add.prQty}"/>
								<h:message for="pcPurchaseReqItemBeanAddPrQty" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Ppu"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReqItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPrPpu" value="#{_item.prPpu}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqItemBeanAddPrPpu" value="#{pcPurchaseReqItemBean.add.prPpu}"/>
								<h:message for="pcPurchaseReqItemBeanAddPrPpu" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Status Inc Vat"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReqItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPrStatusIncVat" value="#{_item.prStatusIncVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqItemBeanAddPrStatusIncVat" value="#{pcPurchaseReqItemBean.add.prStatusIncVat}"/>
								<h:message for="pcPurchaseReqItemBeanAddPrStatusIncVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Vat Perc Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReqItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPrVatPercVal" value="#{_item.prVatPercVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqItemBeanAddPrVatPercVal" value="#{pcPurchaseReqItemBean.add.prVatPercVal}"/>
								<h:message for="pcPurchaseReqItemBeanAddPrVatPercVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Pr Vat Val"/>
							</f:facet>
							<h:link outcome="/pcPurchaseReqItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemPrVatVal" value="#{_item.prVatVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="pcPurchaseReqItemBeanAddPrVatVal" value="#{pcPurchaseReqItemBean.add.prVatVal}"/>
								<h:message for="pcPurchaseReqItemBeanAddPrVatVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(pcPurchaseReqItemBean.added)}" id="mmItemBeanMmItemPcPurchaseReqItemsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{pcPurchaseReqItemBean.add.mmItem}" value="#{mmItemBean.mmItem}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemMmItemPriceCustGroups" value="Mm Item Price Cust Groups:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmItemBean.mmItem.mmItemPriceCustGroups}"/>
					<h:dataTable id="mmItemBeanMmItemMmItemPriceCustGroups" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Item Price"/>
							</f:facet>
							<h:link outcome="/mmItemPriceCustGroup/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemItemPrice" value="#{_item.itemPrice}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="mmItemPriceCustGroupBeanAddItemPrice" value="#{mmItemPriceCustGroupBean.add.itemPrice}"/>
								<h:message for="mmItemPriceCustGroupBeanAddItemPrice" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(mmItemPriceCustGroupBean.added)}" id="mmItemBeanMmItemMmItemPriceCustGroupsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{mmItemPriceCustGroupBean.add.mmItem}" value="#{mmItemBean.mmItem}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemSdQuotationItems" value="Sd Quotation Items:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmItemBean.mmItem.sdQuotationItems}"/>
					<h:dataTable id="mmItemBeanMmItemSdQuotationItems" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Qty"/>
							</f:facet>
							<h:link outcome="/sdQuotationItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtQty" value="#{_item.qtQty}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationItemBeanAddQtQty" value="#{sdQuotationItemBean.add.qtQty}"/>
								<h:message for="sdQuotationItemBeanAddQtQty" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Ppu"/>
							</f:facet>
							<h:link outcome="/sdQuotationItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtPpu" value="#{_item.qtPpu}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationItemBeanAddQtPpu" value="#{sdQuotationItemBean.add.qtPpu}"/>
								<h:message for="sdQuotationItemBeanAddQtPpu" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Status Inc Vat"/>
							</f:facet>
							<h:link outcome="/sdQuotationItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtStatusIncVat" value="#{_item.qtStatusIncVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationItemBeanAddQtStatusIncVat" value="#{sdQuotationItemBean.add.qtStatusIncVat}"/>
								<h:message for="sdQuotationItemBeanAddQtStatusIncVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Vat Perc Val"/>
							</f:facet>
							<h:link outcome="/sdQuotationItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtVatPercVal" value="#{_item.qtVatPercVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationItemBeanAddQtVatPercVal" value="#{sdQuotationItemBean.add.qtVatPercVal}"/>
								<h:message for="sdQuotationItemBeanAddQtVatPercVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="Qt Vat"/>
							</f:facet>
							<h:link outcome="/sdQuotationItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemQtVat" value="#{_item.qtVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdQuotationItemBeanAddQtVat" value="#{sdQuotationItemBean.add.qtVat}"/>
								<h:message for="sdQuotationItemBeanAddQtVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdQuotationItemBean.added)}" id="mmItemBeanMmItemSdQuotationItemsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdQuotationItemBean.add.mmItem}" value="#{mmItemBean.mmItem}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="mmItemBeanMmItemSdSaleOrderItems" value="Sd Sale Order Items:"/>
				<h:panelGroup>
					<ui:param name="_collection" value="#{mmItemBean.mmItem.sdSaleOrderItems}"/>
					<h:dataTable id="mmItemBeanMmItemSdSaleOrderItems" styleClass="data-table" value="#{forgeview:asList(_collection)}" var="_item">
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Qty"/>
							</f:facet>
							<h:link outcome="/sdSaleOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSoQty" value="#{_item.soQty}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderItemBeanAddSoQty" value="#{sdSaleOrderItemBean.add.soQty}"/>
								<h:message for="sdSaleOrderItemBeanAddSoQty" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Ppu"/>
							</f:facet>
							<h:link outcome="/sdSaleOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSoPpu" value="#{_item.soPpu}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderItemBeanAddSoPpu" value="#{sdSaleOrderItemBean.add.soPpu}"/>
								<h:message for="sdSaleOrderItemBeanAddSoPpu" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Status Inc Vat"/>
							</f:facet>
							<h:link outcome="/sdSaleOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSoStatusIncVat" value="#{_item.soStatusIncVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderItemBeanAddSoStatusIncVat" value="#{sdSaleOrderItemBean.add.soStatusIncVat}"/>
								<h:message for="sdSaleOrderItemBeanAddSoStatusIncVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Vat Perc Val"/>
							</f:facet>
							<h:link outcome="/sdSaleOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSoVatPercVal" value="#{_item.soVatPercVal}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderItemBeanAddSoVatPercVal" value="#{sdSaleOrderItemBean.add.soVatPercVal}"/>
								<h:message for="sdSaleOrderItemBeanAddSoVatPercVal" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column>
							<f:facet name="header">
								<h:outputText value="So Vat"/>
							</f:facet>
							<h:link outcome="/sdSaleOrderItem/view">
								<f:param name="id" value="#{_item.id}"/>
								<h:outputText id="itemSoVat" value="#{_item.soVat}"/>
							</h:link>
							<f:facet name="footer">
								<h:inputText id="sdSaleOrderItemBeanAddSoVat" value="#{sdSaleOrderItemBean.add.soVat}"/>
								<h:message for="sdSaleOrderItemBeanAddSoVat" styleClass="error"/>
							</f:facet>
						</h:column>
						<h:column footerClass="remove-column" headerClass="remove-column">
							<h:commandLink action="#{_collection.remove(_item)}" styleClass="remove-button"/>
							<f:facet name="footer">
								<h:commandLink action="#{_collection.add(sdSaleOrderItemBean.added)}" id="mmItemBeanMmItemSdSaleOrderItemsAdd" styleClass="add-button">
									<f:setPropertyActionListener target="#{sdSaleOrderItemBean.add.mmItem}" value="#{mmItemBean.mmItem}"/>
								</h:commandLink>
							</f:facet>
						</h:column>
					</h:dataTable>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{mmItemBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty mmItemBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{mmItemBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{mmItemBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>